<?php
class OORDBQueryException extends Exception
{
	public $error;
	public $sql;
	
	public function __construct( $error, $sql )
	{
		parent::__construct( "Database Query Error \"$error\" in statement \"$sql\"");
		$this->error = $error;
		$this->sql = $sql;
	}
}
?>